package com.jxdinfo.hussar.activitidemo.bean;

import java.io.Serializable;

/**
 * 聊天室消息体
 */
public class ChatMessage implements Serializable {

    private String messageId;
    /**
     * 消息类型：
     * 1：申请类消息
     * 2：文本类聊天记录消息
     * 3：图片类聊天记录消息
     * 4：功能类消息
     * 5: 提示类消息
     */
    private Integer type;
    /**
     * 聊天室ID
     */
    private String roomId;

    /**
     * 应急事件ID
     */
    private String sEventId;

    /**
     * 应急事件处置详细ID
     */
    private String sEventDetailId;

    /**
     * 消息发送者id
     */
    private String fromUserId;

    /**
     * 消息发送者name
     */
    private String fromUserName;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 图片类消息：图片url
     */
    private String imgUrl;
    private String bigImgUrl;
    /**
     * 消息发送时间
     */
    private long sendTime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(long sendTime) {
        this.sendTime = sendTime;
    }

    public String getBigImgUrl() {
        return bigImgUrl;
    }

    public void setBigImgUrl(String bigImgUrl) {
        this.bigImgUrl = bigImgUrl;
    }

    public String getsEventId() {
        return sEventId;
    }

    public void setsEventId(String sEventId) {
        this.sEventId = sEventId;
    }

    public String getsEventDetailId() {
        return sEventDetailId;
    }

    public void setsEventDetailId(String sEventDetailId) {
        this.sEventDetailId = sEventDetailId;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    @Override
    public String toString() {
        return "ChatMessage{" +
                "type=" + type +
                ", roomId='" + roomId + '\'' +
                ", fromUserId='" + fromUserId + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", content='" + content + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }
}
